<template>
  <el-header>
    <vheader />
  </el-header>
  <el-container>
    <el-carousel indicator-position="outside">
      <el-carousel-item v-for="i in 4" :key="i">
        <img v-bind:src="'https://sm.darebeat.cn/images/2021/03/23/0'+i+'.jpg'" />
      </el-carousel-item>
    </el-carousel>
  </el-container>
  <el-container>
    <el-aside class="el-my-aside">
      <navmenu />
    </el-aside>
    <el-main>
      <router-view></router-view>
    </el-main>
  </el-container>
  <el-footer>FOOTER</el-footer>
</template>
<script>
import NavMenu from '@/components/NavMenu'
import Header from '@/components/Header'

export default {
  name: 'app',
  components: {
    'navmenu': NavMenu,
    'vheader': Header
  }
}

</script>

<style>
  body{
    margin: 0;
  }
  .el-header,.el-footer {
    width: 100%;
    background-color: rgb(10, 10, 10);
    color: #fff;
  }
  .el-main{
    min-height: 500px;
    padding: 0px;
  }
  .el-my-aside {
    width: 100px;
  }
  .el-carousel {
    width: 100%;
    background-color: #000;
  }
  .el-carousel__item img {
    color: #475669;
    font-size: 18px;
    opacity: 0.75;
    margin: 0;
    width: 100%;
  }
  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }
  .el-carousel__item:nth-child(2n+1) {
    background-color: #d3dce6;
  }
</style>